﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VideoList.ascx.cs" Inherits="Module_Video_Controls_VideoList" %>
<%@ Register TagPrefix="avg" Namespace="Avg.Controls" Assembly="SmartPager" %>
<%@ Import Namespace="DemoObject" %>
<%@ Import Namespace="BusinessObjects" %>
<div style="background-color:White;padding:5px;">
    <div style="border-bottom: 1px solid #7E0B0E; margin-bottom: 20px; margin-top: 10px;
        padding-bottom: 5px;">
        <h3 style="margin: 0">
            <a class="title">
                <%=VideoCategoryName.ToUpper()%></a>
        </h3>
    </div>
    <asp:Repeater runat="server" ID="rpt">
        <ItemTemplate>
            <div style="width: 25%; float: left; text-align: center; padding-bottom: 20px;">
                <a class="title1" href='<%#UrlBuilder.UrlVideoPlayer(((TblVideo)Container.DataItem).TblVideoCategories.TextId,Eval("TextId").ToString()) %>'
                    title="<%#Eval("Name") %>">
                    <img alt="" src='<%#UrlBuilder.ImageUrl(Eval("ImageUrl").ToString(),120,120)%>' />
                </a>
                <br />
                <a class="title1" href='<%#UrlBuilder.UrlVideoPlayer(((TblVideo)Container.DataItem).TblVideoCategories.TextId,Eval("TextId").ToString()) %>'
                    title="<%#Eval("Name") %>">
                    <%#Eval("Name") %>
                </a>
            </div>
            <%#(Container.ItemIndex+1)%4==0?"<div style='clear:both'></div>":"" %>
        </ItemTemplate>
    </asp:Repeater>
    <div style="clear: both">
    </div>

<avg:SmartPager ID="smartPager" runat="server" Visible="false" />
</div>